package com.song.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;


//http://localhost:7001/
//http://eureka7001.com:7001/
// 测试是否能访问到eureka的配置，启动config服务端3344：http://localhost:3344/master/config-eureka-dev.yml

/*
    spring:
      profiles:
        active: dev
      application:
        name: springcloud-config-eureka
    server:
      port: 7001
    eureka:
      instance:
        hostname: eureka7001.com
      client:
        register-with-eureka: false
        fetch-registry: false
        service-url:
          defaultZone: http://eureka7002.com:7002/eureka/,http://eureka7003.com:7003/eureka/
 */


@EnableEurekaServer  //服务端的启动类，可以接受别人注册进来
@SpringBootApplication
public class EurekaServer_Config_7001 {
    public static void main(String[] args) {
        SpringApplication.run(EurekaServer_Config_7001.class,args);
        System.out.println("EurekaServer_Config_7001启动了");
    }
}
